package com.engine.kq.service;

import weaver.hrm.User;

import java.util.Map;

/**
 * 值班规则
 */
public interface KQDutyRulesService {

   
    /**
     * 获取新建或编辑的表单
     * @param params
     * @param user
     * @return
     */
    public Map<String, Object> getDutyRulesForm(Map<String, Object> params, User user);

    /**
     * 获取加班规则列表
     * @param params
     * @param user
     * @return
     */
    public Map<String, Object> getSearchList(Map<String, Object> params, User user);

    /**
     * 新建
     * @param params
     * @param user
     * @return
     */
    public Map<String, Object> addDutyRules(Map<String, Object> params, User user);

    /**
     * 编辑
     * @param params
     * @param user
     * @return
     */
    public Map<String, Object> editDutyRules(Map<String, Object> params, User user);

    /**
     * 删除
     * @param params
     * @param user
     * @return
     */
    public Map<String, Object> deleteDutyRules(Map<String, Object> params, User user);
    
    /**
     * 判断某考勤组是否重复设置了值班规则
     * @param params
     * @param user
     * @return
     */
    public Map<String, Object> isRepeatSetting(Map<String, Object> params, User user);

    /**
     * 获取值班单位的表单
     * @param params
     * @param user
     * @return
     */
    public Map<String, Object> getDutyUnitForm(Map<String, Object> params, User user);

    /**
     * 值班单位--保存
     * @param params
     * @param user
     * @return
     */
    public Map<String, Object> saveDutyUnit(Map<String, Object> params, User user);
}
